package com.br.negocio.web.formbean;

import java.util.List;

import com.br.negocio.vo.ServicoVO;
import com.br.negocio.vo.home.TipoServicoHome;

public class ServicoFormBean {

	//TELA DE CONSULTA
	private List<ServicoVO> listaServico = null;
	
	//TELA DE INSERIR/EDITAR
	private ServicoVO servicoManter;
	
	//TELA DE POPUP
	private ServicoVO servicoPopUp;
	
	private String head = new String();
	
	private boolean isDisabled = false;
	
	
	public ServicoFormBean() {
		this.servicoManter = new ServicoVO();
		this.servicoPopUp = new ServicoVO();
	}

	//TELA DE CONSULTA
	public List<ServicoVO> getListaServico() {
		return this.listaServico;
	}
	
	public void setListaServico(List<ServicoVO> listaServico) {
		this.listaServico = listaServico;
	}
	
	//TELA DE INSERIR/EDITAR
	public ServicoVO getServicoManter() {
		
		if (this.servicoManter.getTipoServico() == 0) {
			this.servicoManter.setTipoServico(TipoServicoHome.HOTEL);
			}
		
		return this.servicoManter;
	}

	public void setServicoManter(ServicoVO servicoManter) {
		this.servicoManter = servicoManter;
	}
	
	//TELA DE POPUP
	public ServicoVO getServicoPopUp() {
		return this.servicoPopUp;
	}
	
	public void setServicoPopUp(ServicoVO servicoPopUp) {
		this.servicoPopUp = servicoPopUp;
	}

	public boolean getIsDisabled() {
		return this.isDisabled;
	}

	public void setIsDisabled(boolean isDisabled) {
		this.isDisabled = isDisabled;
	}

	/**
	 * @return the head
	 */
	public String getHead() {
		return head;
	}

	/**
	 * @param head the head to set
	 */
	public void setHead(String head) {
		this.head = head;
	}
	
	
	
}